<% user_type = get_user_type %>
<% if user_type.to_i == 0 %>
  <%= link_to "注册",:controller => 'user_cfg', :action => 'user_register',:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:sid=>my_sid,:cn=>my_cn %>/<%= link_to "书签",:controller => 'wap', :action => 'mark',:return_id => 1,:sid=>my_sid,:page_for => @page_for,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:cn=>my_cn %> <%= link_to "必看声明!",:controller => 'wap', :action => 'disclaimer',:sid=>my_sid,:page_for => @page_for,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:cn=>my_cn%><br/>
  <%= link_to "排行",:controller => 'col', :action => 'rank',:return_id => 2,:sid=>my_sid,:page_for => @page_for,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:cn=>my_cn %>.<%= link_to "随机",:controller => 'col', :action => 'rands',:return_id => 2,:sid=>my_sid,:page_for => @page_for,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:cn=>my_cn %>.<%= link_to "千变",:controller => 'change', :action => 'show',:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:sid=>my_sid,:cn=>my_cn %>.<%= link_to "搜图",:controller => 'col', :action => 'search_more',:return_id => 1,:sid=>my_sid,:page_for => @page_for,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:cn=>my_cn %><br/>
  <%= link_to "最新更新套图#{get_lastest_imgs()}张",:controller => 'col', :action => 'hot',:return_id => 1,:sid=>my_sid,:page_for => @page_for,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:cn=>my_cn %><br/>
<%elsif user_type.to_i == 1%>
  <%= link_to "注册",:controller => 'user_cfg', :action => 'user_register',:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:sid=>my_sid,:cn=>my_cn %>/<%= link_to "登录",:controller => 'user_cfg', :action => 'user_cfg_login',:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:sid=>my_sid,:cn=>my_cn %> <%= link_to "必看声明!",:controller => 'wap', :action => 'disclaimer',:sid=>my_sid,:page_for => @page_for,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:cn=>my_cn%><br/>
  <%= link_to "排行",:controller => 'col', :action => 'rank',:return_id => 2,:sid=>my_sid,:page_for => @page_for,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:cn=>my_cn %>.<%= link_to "随机",:controller => 'col', :action => 'rands',:return_id => 2,:sid=>my_sid,:page_for => @page_for,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:cn=>my_cn %>.<%= link_to "千变",:controller => 'change', :action => 'show',:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:sid=>my_sid,:cn=>my_cn %>.<%= link_to "搜图",:controller => 'col', :action => 'search_more',:return_id => 1,:sid=>my_sid,:page_for => @page_for,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:cn=>my_cn %><br/>
  <%= link_to "最新更新套图#{get_lastest_imgs()}张",:controller => 'col', :action => 'hot',:return_id => 1,:sid=>my_sid,:page_for => @page_for,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:cn=>my_cn %><br/>
<%else%>
  <%= link_to "我的地盘",:controller => 'user_cfg', :action => 'user_cfg',:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:sid=>my_sid,:cn=>my_cn %>.<%= link_to "最新#{get_lastest_imgs()}张",:controller => 'col', :action => 'hot',:return_id => 1,:sid=>my_sid,:page_for => @page_for,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:cn=>my_cn %><br/>
  <%= link_to "排行",:controller => 'col', :action => 'rank',:return_id => 2,:sid=>my_sid,:page_for => @page_for,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:cn=>my_cn %>.<%= link_to "随机",:controller => 'col', :action => 'rands',:return_id => 2,:sid=>my_sid,:page_for => @page_for,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:cn=>my_cn %>.<%= link_to "千变",:controller => 'change', :action => 'show',:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:sid=>my_sid,:cn=>my_cn %>.<%= link_to "搜图",:controller => 'col', :action => 'search_more',:return_id => 1,:sid=>my_sid,:page_for => @page_for,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:cn=>my_cn %><br/>
<%end%>
<% ad = get_wap_ads %>
<% unless ad.nil? %>
  <%= link_to ad.name,:controller => 'col', :action => 'show_more',:ad => ad.id,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:sid=>my_sid,:cn=>my_cn %><br/>
<% end %>
<% unless @channel_chose.nil? %>
  【<%=@channel_chose.name%>】<%=link_to "更多",:controller => 'col', :action => 'channel_chose',:id => @channel_chose.id,:sid=>my_sid,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:cn=>my_cn%><br/>
  <% res = get_res_by_channel(@channel_chose) %>
  <% res.each_with_index do |re,index| %><% if index < 3  %><%=link_to re.name+"[#{get_pic_num(re)}P]" ,:controller => 'col', :action => 'img_style_to',:resource => re.id,:sid=>my_sid,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:return_type =>3,:cn=>my_cn%><br/><% end %><% end %>
<% end %>
<input type='text' size='12' name='sea' value='<%= @search %>' /><br/>
<anchor>
  站内搜<go method='get' href='/col/search/'>
    <postfield name='search' value='$(sea)'/>
    <postfield name='sid' value='<%=my_sid%>'/>
    <postfield name='page_for' value='<%=@page_for%>'/>
    <postfield name='go_page' value='<%=@go_page%>'/>
    <postfield name='img_style' value='<%=@img_style%>'/>
    <postfield name='pp_style' value='<%=@pp_style%>'/>
    <postfield name='pp_num' value='<%=@pp_num%>'/>
    <postfield name='cn' value='<%=my_cn%>'/>
  </go>
</anchor>.
<anchor>
  站外搜<go method="get" href="http://wukong.com/spic.wml">
    <postfield name="ad_oid" value="31053d7e" />
    <postfield name="ad_nid" value="bef4d12b" />
    <postfield name="q" value="$(sea)" />
    <postfield name="ad_ourl" value="http://580wap.cn" />
    <postfield name="ad_kid" value="-1" />
    <postfield name="ad_aid" value="12345678" /></go></anchor>
<%= link_to ".更多",:controller => 'col', :action => 'search_more',:sid=>my_sid,:page_for => @page_for,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:cn=>my_cn%><br/>
<% ses = get_hot_series %>
<%= link_to "热门:" ,:controller => 'col',:action => 'more_series',:sid=>my_sid,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:cn=>my_cn %>
<%ses.each_with_index do |se,index|%><%= link_to se.name ,:controller => 'col',:action => 'series',:type=>1,:tag => se.id,:sid=>my_sid,:sid=>my_sid,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:cn=>my_cn %><% if ses.size > index+1 %>.<%end%><%end%><br/>
<% @channels.each do |channel| %>
  <%="【"%><%=h channel.name%><%="】"%><% x_c = 0 %><% sects = get_sections(channel)
  sects.each_with_index do |section,index| %><% if section.x == x_c %><% x_c = section.x %><% else %><%="<br/>"%><% x_c = section.x %><% end %><% if section.is_ad? %><%=link_to section.name,:controller => 'col', :action => 'ad',:id => section.id,:sid=>my_sid,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:cn=>my_cn%><% else %><% @res = get_section_res(section.id)%><%=link_to section.name,:controller => 'col', :action => 'show',:id => section.id,:sid=>my_sid,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:cn=>my_cn%><% if !sects[index+1].nil? && sects[index].x == sects[index+1].x%>|<%end%><% end %><% end %><%="<br/>"%>
<% end %>
<% unless @channel_al.nil? %>
  【<%=@channel_al.name%>】<br/>
  <% ses = get_sections_rand(@channel_al) %>
  <% ses.each_with_index do |se,index| %><% if index < 5  %><%=link_to se.name,:controller => 'col', :action => 'show_al',:id => se.id,:sid=>my_sid,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:cn=>my_cn%>.<% end %><% end %><%=link_to "更多",:controller => 'col', :action => 'channel_al',:id => @channel_al.id,:sid=>my_sid,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:cn=>my_cn%><br/>
<% end %>
<%="【站务服务】"%><br/>
<%=link_to "客服中心",:controller => 'wap', :action => 'service',:sid=>my_sid,:page_for => @page_for,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:cn=>my_cn %>.<%= link_to "关于免责",:controller => 'wap', :action => 'disclaimer',:sid=>my_sid,:page_for => @page_for,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:cn=>my_cn%>
<br/>
<%=tims %><br/>
<%="如果您喜欢本站,请记得保存为书签哦以便下回访问,或推荐给你的朋友,内容完全免费,请放心浏览!"%><br/>
<%="黑ICP备09087318号"%>
